package com.hyfrogx.modules.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.app.entity.HyUserAttentionEntity;

import java.util.List;
import java.util.Map;

/**
 * @author liubin
 * @date 2019/10/28 11:38
 */
public interface AttentionService extends IService<HyUserAttentionEntity> {

  /**
   * 查出所有关注的资讯号id
   * @param userId
   * @return
   */
  List<HyUserAttentionEntity> getAllFollowId(Long userId);

  /**
   * 获取粉丝列表
   * @param queryExt
   * @return
   */
  Page getMyFunsByUid(QueryExt queryExt);

  Page getAllSunSid(QueryExt queryExt);

  HyUserAttentionEntity getBySidAndUid(Integer sid, Integer uid);

  Page getAllFunsId(QueryExt query);

  Integer selectsta(Integer sid, Integer fid);

  HyUserAttentionEntity getByFid(Integer userId);
}
